package com.servitware.cardio.transfer;

import java.net.MalformedURLException;
import java.net.URL;

public enum RestURL
{
	Sesiones("http://www.cardiorunning.com/descargas/index.php?q=sesiones");

	RestURL(String url)
	{
		this.url = url;
	}

	private String url;

	public String getURL()
	{
		return url;
	}

	public URL getInternetURL()
	{
		URL _url;
		try
		{
			_url = new URL(url);
		}
		catch (MalformedURLException e)
		{
			return null;
		}
		
		return _url;
	}
}